import type { UploadFile } from './types'
import { http } from '@/http/request/alova'
import { PORT } from '../http/request/servicePort'

/**
 * 登录表单
 */
export interface ResLoginInfo {
  id: number;
  oemCode: string; //OEM机构编码
  oemName: string; //OEM机构名称（品牌名称）
  oemCompanyName: string; //OEM机构对应企业名称
  logoFile: UploadFile[];
  icoFile: UploadFile[];
  themeColor: string;
  address: string; //地址
  hotline: string; //联系电话
  icp: string; //ICP备案信息
  enterpriseParkName: string; //园区个性化名称 - 后台/合伙人小程序端
  workerParkName: string; //园区个性化名称 - 零工小程序端
  defaultPartnerName: string; //默认合伙人等级名称
  level1PartnerName: string; //合伙人等级个性化名称 - 一级合伙人
  level2PartnerName: string; //合伙人等级个性化名称 - 二级合伙人
  partyCode: string;
  position: string; //平台定位
  introduce: string; //一句话介绍
  subIntroduce: string; //辅介绍
  config: string; //贴牌配置参数信息，json格式
}
/**
 * 获取oem机构信息
 */
export function getQueryOemCode2Api(hostname: string) {
  return http.Post<ResLoginInfo>(`${PORT}/sys/manager/queryOemCode2`, {hostname})
}
